<?php

include_once '../../../Core/Conexion.php';
include_once '../../../Core/Controlador.php';
include_once '../../../Core/InterfazDatos.php';
include_once '../../entidades/Usuario.php';
include_once '../../entidades/Suscripcion.php';

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Crear
 *
 * @author cHr15t14n
 */
class Crear extends Controlador {

    function __construct() {
        parent::__construct();
    }

    public function ejecutar() {
        $hoy = getdate();
        $entidad= new Suscripcion(0, $hoy[year]."-".$hoy[mon]."-".$hoy[mday]." ".$hoy[hours].":".$hoy[minutes], 0, 0, 0, 0);        
        $this->conexion->grabar($entidad);
    }

//put your code here
}

$controlador = new Crear();
$controlador->ejecutar();
